<div id="pad-wrapper" class="new-user">
	<div class="row-fluid header">
		<h3>审核</h3>
	</div>
	<div class="row-fluid form-wrapper">
		<!-- left column -->
		<div class="span9 with-sidebar">
			<div class="container">
				<form class="new_user_form form-horizontal" action="/agent/info" method="post" id="dataForm" enctype="multipart/form-data">
				<input type="hidden" id="hidden" name="id" value="<?php echo $list['id']?>" />
                    <div class="field-box"></div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="organization_name">姓名：</label>
				  <div class="controls col-lg-5"><?php echo $list['name']; ?></div>
				</div>
                    <div class="control-group form-group span12">
                        <label class="control-label" for="organization_name">性别：</label>
                        <div class="controls col-lg-5"><?php echo $list['sex'] == 1 ? '男' : '女'; ?></div>
                    </div>
				<div class="control-group form-group span12">
				  <label class="control-label" for="description">手机号：</label>
				  <div class="controls col-lg-5"><?php echo $list['mobile']; ?></div>
				</div>
				<div class="control-group form-group span12">
					<label class="control-label" for="description">微信昵称：</label>
					<div cass="controls col-lg-5">&nbsp;&nbsp;<?php echo $list['nickname']; ?></div>
				</div>
				<div class="control-group form-group span12">
					<label class="control-label" for="description">申请时间：</label>
					<div class="controls col-lg-5"><?php if($list['create_time'] != 0){echo date('Y-m-d H:i:s', $list['create_time']);} ?></div>
				</div>
				<div class="control-group form-group span12">
					<label class="control-label" for="description">审核状态：</label>
					<div class="controls col-lg-5">
						<input type="radio"  name="reply_status" id="reply_status" value="1" checked />审核通过
                        <input type="radio"  name="reply_status" id="reply_status" value="2" />审核拒绝
					</div>
				</div>

                <div class="control-group form-group span12">
                    <label class="control-label" for="description">备注：</label>
                    <div class="controls col-lg-5">
                        <textarea cols="20" rows="6" name="mark" id="mark"></textarea>
                    </div>
                </div>

				<div class="span12 field-box"></div>
				<div class="control-group form-group span12 actions">
				  <label class="control-label"></label>
				  <div class="controls col-lg-5">
                      <button type="button" id="btn-edit" class=" btn-flat primary">确定</button>
                      <button type="button" id="reset" class=" btn-flat primary">返回 </button>
				  </div>
				</div>
				</form>
			</div>
		</div>
		<!-- side right column -->
		<div class="span3 form-sidebar pull-right">
		</div>
	</div>
    <script type="text/javascript" src="./js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript">
        $(function () {
            $("#btn-edit").click(function () {
                var reply_status = $('input:radio:checked').val();
                var mark = $('#mark').val();
                var id = $('#hidden').val();
                if( reply_status==2 && !mark ){
                    alert('选择审核拒绝时，必须填写备注');
                }else{
                    $("form").submit();
                }
            });

            $("#reset").click(function (e) {
                window.location.href="/agent/index";
            });
        });
	</script>
</div>